OBJ = fac.o main.o
TARGET = fac
CXX = g++ -std=c++14
CFLAGS = -c -Wall

$(TARGET):$(OBJ)
	$(CXX) $^ -o $@

%.o:%.cpp
	$(CXX) $(CFLAGS) $^ -o $@

clean:
	rm -rf $(TARGET) $(OBJ) 